<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_base_collaborate_school".
 *
 * @property string $id
 * @property string $school_id 学校ID
 * @property string $school_name 学校名称
 * @property string $domain_system 域名
 * @property string $url_address 上传地址
 * @property string $image_url 二维码地址
 * @property string $forum_id
 * @property string $code 简称
 * @property string $create_by
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property int $del_flag
 */
class TBaseCollaborateSchool extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_base_collaborate_school';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['create_time', 'update_time'], 'safe'],
            [['del_flag'], 'integer'],
            [['id', 'school_id', 'forum_id', 'schedule_forum_id', 'code', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['school_name', 'domain_system', 'url_address', 'image_url'], 'string', 'max' => 255],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'school_id' => 'School ID',
            'school_name' => 'School Name',
            'domain_system' => 'Domain System',
            'url_address' => 'Url Address',
            'image_url' => 'Image Url',
            'forum_id' => 'Forum ID',
            'code' => 'Code',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
